package com.ubi.core.framework.exception;

import java.util.ArrayList;
import java.util.List;

public class BatchDeleteException extends BaseBusinessException {

    private int totalDeleteCount;

    private List<Long> referByOthersIdList = new ArrayList<>();

    private List<Long> notExistsIdList = new ArrayList<>();

    public BatchDeleteException() {
    }

    public BatchDeleteException(int totalSize, List<Long> notExistsIdList, List<Long> referByOthersIdList) {
        this.referByOthersIdList = referByOthersIdList;
        this.notExistsIdList = notExistsIdList;
        this.totalDeleteCount = totalSize;
    }

    public int getTotalDeleteCount() {
        return totalDeleteCount;
    }

    public void setTotalDeleteCount(int totalDeleteCount) {
        this.totalDeleteCount = totalDeleteCount;
    }

    public int getReferByOthersCount() {
        return referByOthersIdList.size();
    }

    public int getNotExistsCount() {
        return notExistsIdList.size();
    }

    public List<Long> getReferByOthersIdList() {
        return referByOthersIdList;
    }

    public List<Long> getNotExistsIdList() {
        return notExistsIdList;
    }

}
